<?php echo $this->element('slide');?>
<div id="products_container">
<?php foreach ($books as $book): ?>
<div class="product">
<?php echo $this->Html->div('product_name', $this->Html->link($book['Product']['name'], array('controller'=>'books', 'action'=>'view', $book['Product']['id'])));
echo $this->Html->div('urunresim', $this->Html->image($book['Product']['image'], array('alt'=>$book['Product']['name'], 'class'=>'urunresim', 'url'=>array('controller'=>'books', 'action'=>'view', $book['Product']['id'])))); 
echo $this->Html->div('producer' ,$book['Producer']['full_name']);
echo $this->Html->div('price' ,$book['Product']['price']." TL");?>
<a href="javascript:void(false)" class="add2cart pill button" onclick="add2cart(<?php echo $book['Product']['id']?>)"><span class="rightarrow icon"></span>Sepete Ekle</a>
</div>
<?php endforeach;?>

<?php foreach ($films as $film): ?>
<div class="product">
<?php echo $this->Html->div('product_name', $this->Html->link($film['Product']['name'], array('controller'=>'films', 'action'=>'view', $film['Product']['id'])));
echo $this->Html->div('urunresim', $this->Html->image($film['Product']['image'], array('alt'=>$film['Product']['name'], 'class'=>'urunresim', 'url'=>array('controller'=>'films', 'action'=>'view', $film['Product']['id'])))); 
echo $this->Html->div('producer' ,$film['Producer']['full_name']);
echo $this->Html->div('price' ,$film['Product']['price']." TL");?>
<a href="javascript:void(false)" class="add2cart pill button" onclick="add2cart(<?php echo $film['Product']['id']?>)"><span class="rightarrow icon"></span>Sepete Ekle</a>
</div>
<?php endforeach;?>

<?php foreach ($musics as $music): ?>
<div class="product">
<?php echo $this->Html->div('product_name', $this->Html->link($music['Product']['name'], array('controller'=>'musics', 'action'=>'view', $music['Product']['id'])));
echo $this->Html->div('urunresim', $this->Html->image($music['Product']['image'], array('alt'=>$music['Product']['name'], 'class'=>'urunresim', 'url'=>array('controller'=>'musics', 'action'=>'view', $music['Product']['id'])))); 
echo $this->Html->div('producer' ,$music['Producer']['full_name']);
echo $this->Html->div('price' ,$music['Product']['price']." TL");?>
<a href="javascript:void(false)" class="add2cart pill button" onclick="add2cart(<?php echo $music['Product']['id']?>)"><span class="rightarrow icon"></span>Sepete Ekle</a>
</div>
<?php endforeach;?>
</div>